package com.ziyun.pop.modules.order.vo;

import com.utility.CollectionsUtils;
import com.utility.JsonUtils;
import org.apache.commons.lang.StringUtils;

import java.util.List;


public class QuoteProductResultVO {

	private Integer productId;

	private String productName;

	private double quantity;

	private String categoryUrl;

	//private Map<String, Map<String, String>> productDescMap;

	/** 产品描述 */
	//private String productDesc;
	
	private List<QuoteProductInfoParamVo> productInfoParamList;
	

	public static QuoteProductResultVO valueOf(Integer productId, String productName, List<QuoteProductInfoParamVo> productInfoParamList) {
		QuoteProductResultVO prodcutVo = new QuoteProductResultVO();
		prodcutVo.productId = productId;
		prodcutVo.productName = productName;
		prodcutVo.productInfoParamList = productInfoParamList;
		return prodcutVo;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

//	public Map<String, Map<String, String>> getProductDescMap() {
//		return productDescMap;
//	}
//
//	public void setProductDescMap(Map<String, Map<String, String>> productDescMap) {
//		this.productDescMap = productDescMap;
//	}
//
//	public String getProductDesc() {
//		return productDesc;
//	}
//
//	public void setProductDesc(String productDesc) {
//		this.productDesc = productDesc;
//	}

	public double getQuantity() {
		return quantity;
	}

	public void setQuantity(double quantity) {
		this.quantity = quantity;
	}

	public List<QuoteProductInfoParamVo> getProductInfoParamList() {
		return productInfoParamList;
	}

	public void setProductInfoParamList(List<QuoteProductInfoParamVo> productInfoParamList) {
		this.productInfoParamList = productInfoParamList;
	}

	public String productInfoParamStr() {
		String str = StringUtils.EMPTY;
		if(CollectionsUtils.isNotEmpty(productInfoParamList)) {
			str = JsonUtils.object2String(productInfoParamList);
		}
		return str;
	}

	public String getCategoryUrl() {
		return categoryUrl;
	}

	public void setCategoryUrl(String categoryUrl) {
		this.categoryUrl = categoryUrl;
	}
}
